<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=0"/>
    <title></title>
    <style>
        body,html{
            margin: 0;
            padding: 0;
        }
        div{
            width: 200px;
            height: 200px;
            background: pink;
            margin: 0 auto;
        }
    </style>
</head>
<body>
    <div></div>
    <script>
        var div = document.querySelector('div');
        div.addEventListener('touchstart',function(e){
            console.log('touchstart');
            console.log(e.touches[0].clientX);
        });
        div.addEventListener('touchmove',function(e){
            console.log('touchmove');
            console.log(e.touches[0].clientX);
        });
        div.addEventListener('touchend',function(e){
            console.log('touchend');
        });
    </script>
</body>
</html>